Geographic globe plot

您所在的位置:网站首页 surface pro5 matlab Geographic globe plot

Geographic globe plot

2024-07-17 04:18| 来源: 网络整理| 查看: 265

When you add a plot to a geographic globe by using the geoplot3 function, MATLAB does not reset the basemap or terrain. In R2022a and earlier releases, the basemap and terrain reset when you add new plots.

As a result, you can specify the basemap or terrain and then visualize data without using the hold function. For example, this code creates a globe using the "streets" basemap and no terrain data. Then, it displays a plot and adjusts the camera view. In R2022b, the basemap and terrain do not reset. In R2022a and earlier releases, the basemap reset to the default "satellite" and the terrain reset to the default "gmted2010".

lat = [42.3501 42.3515 42.3598 42.3584 42.3529 42.3626]; lon = [-71.0870 -71.0926 -71.0662 -71.0598 -71.0662 -71.0789]; uif = uifigure; g = geoglobe(uif,Basemap="streets",Terrain="none"); p = geoplot3(g,lat,lon,0,"ro",LineWidth=3); campos(g,42.33,-71.0756,2113) campitch(g,-42.2458)

This change does not affect existing code that sets the hold state to "on" between commands.

To reset the basemap and terrain, set the Basemap and Terrain properties to the defaults after you create the plot.

g.Basemap = "satellite"; g.Terrain = "gmted2010";

For more information about changing the basemap and terrain of geographic globes, see Access Basemaps and Terrain for Geographic Globe.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3